﻿<?xml version="1.0" encoding="utf-8"?>
<Witd:WITD application="Work item type editor" version="1.0" xmlns:Witd="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typedef">
  <WORKITEMTYPE name="Product Backlog Item">
    <DESCRIPTION>Tracks an activity the user will be able to perform with the product.</DESCRIPTION>
    <FIELDS>
      <FIELD name="Title" refname="System.Title" type="String" reportable="dimension">
        <REQUIRED />
      </FIELD>
      <FIELD name="State" refname="System.State" type="String" reportable="dimension" />
      <FIELD name="Rev" refname="System.Rev" type="Integer" reportable="dimension" />
      <FIELD name="Changed By" refname="System.ChangedBy" type="String" syncnamechanges="true" reportable="dimension" />
      <FIELD name="Backlog Priority" refname="Microsoft.VSTS.Common.BacklogPriority" type="Double" />
      <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">
        <SUGGESTEDVALUES>
          <LISTITEM value="&lt;None&gt;" />
        </SUGGESTEDVALUES>
      </FIELD>
      <FIELD name="Reason" refname="System.Reason" type="String" reportable="dimension" />
      <FIELD name="Iteration Path" refname="System.IterationPath" type="TreePath" reportable="dimension" />
      <FIELD name="Iteration ID" refname="System.IterationId" type="Integer" />
      <FIELD name="Assigned To" refname="System.AssignedTo" type="String" syncnamechanges="true" reportable="dimension">
        <ALLOWEXISTINGVALUE />
        <VALIDUSER />
      </FIELD>
      <FIELD name="Work Item Type" refname="System.WorkItemType" type="String" reportable="dimension" />
      <FIELD name="Effort" refname="Microsoft.VSTS.Scheduling.Effort" type="Double" reportable="measure" />
      <FIELD name="Description HTML" refname="Microsoft.VSTS.Common.DescriptionHtml" type="HTML" />
      <FIELD name="Acceptance Criteria" refname="Microsoft.VSTS.Common.AcceptanceCriteria" type="HTML" />
      <FIELD name="Business Value" refname="Microsoft.VSTS.Common.BusinessValue" type="Integer" reportable="measure" />
      <FIELD name="Created Date" refname="System.CreatedDate" type="DateTime" reportable="dimension" />
      <FIELD name="Created By" refname="System.CreatedBy" type="String" syncnamechanges="true" reportable="dimension" />
      <FIELD name="Description" refname="System.Description" type="PlainText" />
      <FIELD name="Actors" refname="MCCustom.Actors" type="String">
        <SUGGESTEDVALUES>
          <LISTITEM value="Model Tree Basic User" />
          <LISTITEM value="EntityProvider" />
          <LISTITEM value="AbstraX Extensions" />
        </SUGGESTEDVALUES>
      </FIELD>
      <FIELD name="History" refname="System.History" type="History" />
      <FIELD name="NonFunctional" refname="MCCustomFields.NonFunctional" type="String">
        <ALLOWEDVALUES>
          <LISTITEM value="True" />
          <LISTITEM value="False" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD name="UAT Pass" refname="MCCustomFields.UATPass" type="String">
        <ALLOWEDVALUES>
          <LISTITEM value="Passed" />
          <LISTITEM value="Not Tested" />
          <LISTITEM value="Failed" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="Not Tested" />
      </FIELD>
      <FIELD name="UAT Reason For Failure" refname="MCCustomFields.UATReasonForFailure" type="PlainText" />
      <FIELD name="External Link Count" refname="System.ExternalLinkCount" type="Integer" />
      <FIELD name="Related Link Count" refname="System.RelatedLinkCount" type="Integer" />
      <FIELD name="Team Project" refname="System.TeamProject" type="String" reportable="dimension" />
      <FIELD name="Hyperlink Count" refname="System.HyperLinkCount" type="Integer" />
      <FIELD name="Attached File Count" refname="System.AttachedFileCount" type="Integer" />
      <FIELD name="Node Name" refname="System.NodeName" type="String" />
      <FIELD name="Area Path" refname="System.AreaPath" type="TreePath" reportable="dimension" />
      <FIELD name="Revised Date" refname="System.RevisedDate" type="DateTime" reportable="detail" />
      <FIELD name="Changed Date" refname="System.ChangedDate" type="DateTime" reportable="dimension" />
      <FIELD name="ID" refname="System.Id" type="Integer" reportable="dimension" />
      <FIELD name="Area ID" refname="System.AreaId" type="Integer" />
      <FIELD name="Authorized As" refname="System.AuthorizedAs" type="String" syncnamechanges="true" />
    </FIELDS>
    <WORKFLOW>
      <STATES>
        <STATE value="Done">
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.BusinessValue">
              <READONLY />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Scheduling.Effort">
              <READONLY />
            </FIELD>
          </FIELDS>
        </STATE>
        <STATE value="Removed" />
        <STATE value="New" />
        <STATE value="Approved" />
        <STATE value="Committed" />
      </STATES>
      <TRANSITIONS>
        <TRANSITION from="" to="New">
          <REASONS>
            <DEFAULTREASON value="New backlog item" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.BacklogPriority">
              <DEFAULT from="value" value="1000" />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.DescriptionHtml">
              <DEFAULT from="value" value="As a &amp;lt;type of user&amp;gt; I want &amp;lt;some goal&amp;gt; so that &amp;lt;some reason&amp;gt;" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="New" to="Approved">
          <REASONS>
            <DEFAULTREASON value="Approved by the Product Owner" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Approved" to="Committed">
          <REASONS>
            <DEFAULTREASON value="Commitment made by the team" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Committed" to="Done">
          <REASONS>
            <DEFAULTREASON value="Work finished" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Committed" to="Approved">
          <REASONS>
            <DEFAULTREASON value="Work stopped" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="New" to="Removed">
          <REASONS>
            <DEFAULTREASON value="Removed from the backlog" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Approved" to="Removed">
          <REASONS>
            <DEFAULTREASON value="Removed from the backlog" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Done" to="Committed">
          <REASONS>
            <DEFAULTREASON value="Additional work found" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Removed" to="New">
          <REASONS>
            <DEFAULTREASON value="Reconsidering backlog item" />
          </REASONS>
        </TRANSITION>
      </TRANSITIONS>
    </WORKFLOW>
    <FORM>
      <Layout>
        <Group>
          <Column PercentWidth="100">
            <Control FieldName="System.Title" Type="FieldControl" Label="&amp;Title:" LabelPosition="Left" />
            <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="Ite&amp;ration:" LabelPosition="Left" />
            <Control FieldName="MCCustom.Actors" Type="FieldControl" Label="Actors:" LabelPosition="Left" Dock="Left" Name="Actors" />
            <Control FieldName="MCCustomFields.NonFunctional" Type="FieldControl" Label="Non-Functional:" LabelPosition="Left" Dock="Right" Name="NonFunctional" />
          </Column>
        </Group>
        <Group>
          <Column PercentWidth="50">
            <Group Label="Status">
              <Column PercentWidth="100">
                <Control FieldName="System.AssignedTo" Type="FieldControl" Label="Assi&amp;gned To:" LabelPosition="Left" />
                <Control FieldName="System.State" Type="FieldControl" Label="&amp;State:" LabelPosition="Left" />
                <Control FieldName="System.Reason" Type="FieldControl" Label="Reason:" LabelPosition="Left" ReadOnly="True" />
              </Column>
            </Group>
          </Column>
          <Column PercentWidth="50">
            <Group Label="Details">
              <Column PercentWidth="100">
                <Control FieldName="Microsoft.VSTS.Common.BacklogPriority" Type="FieldControl" Label="Backlog Priority:" LabelPosition="Left" />
                <Control FieldName="Microsoft.VSTS.Scheduling.Effort" Type="FieldControl" Label="Effort:" LabelPosition="Left" />
                <Control FieldName="Microsoft.VSTS.Common.BusinessValue" Type="FieldControl" Label="Business Value:" LabelPosition="Left" />
                <Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="Area:" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
        </Group>
        <Group>
          <Column PercentWidth="50">
            <TabGroup>
              <Tab Label="Description">
                <Control FieldName="Microsoft.VSTS.Common.DescriptionHtml" Type="HtmlFieldControl" Label="" LabelPosition="Top" Dock="Fill" />
              </Tab>
              <Tab Label="Test Cases">
                <Control Type="LinksControl" Label="" LabelPosition="Top" Name="TestedBy">
                  <LinksControlOptions>
                    <LinkColumns>
                      <LinkColumn RefName="System.Id" />
                      <LinkColumn RefName="System.WorkItemType" />
                      <LinkColumn RefName="System.Title" />
                      <LinkColumn RefName="System.AssignedTo" />
                      <LinkColumn RefName="System.State" />
                    </LinkColumns>
                    <WorkItemLinkFilters FilterType="include">
                      <Filter LinkType="Microsoft.VSTS.Common.TestedBy" FilterOn="forwardname" />
                    </WorkItemLinkFilters>
                    <ExternalLinkFilters FilterType="excludeAll" />
                    <WorkItemTypeFilters FilterType="include">
                      <Filter WorkItemType="Test Case" />
                    </WorkItemTypeFilters>
                  </LinksControlOptions>
                </Control>
              </Tab>
              <Tab Label="Tasks">
                <Control Type="LinksControl" Label="" LabelPosition="Top" Name="Hierarchy">
                  <LinksControlOptions>
                    <LinkColumns>
                      <LinkColumn RefName="System.Id" />
                      <LinkColumn RefName="System.Title" />
                      <LinkColumn RefName="System.AssignedTo" />
                      <LinkColumn RefName="System.State" />
                    </LinkColumns>
                    <WorkItemLinkFilters FilterType="include">
                      <Filter LinkType="System.LinkTypes.Hierarchy" FilterOn="forwardname" />
                    </WorkItemLinkFilters>
                    <ExternalLinkFilters FilterType="excludeAll" />
                    <WorkItemTypeFilters FilterType="include">
                      <Filter WorkItemType="Task" />
                    </WorkItemTypeFilters>
                  </LinksControlOptions>
                </Control>
              </Tab>
            </TabGroup>
          </Column>
          <Column PercentWidth="50">
            <TabGroup>
              <Tab Label="Acceptance Criteria">
                <Control FieldName="Microsoft.VSTS.Common.AcceptanceCriteria" Type="HtmlFieldControl" Label="" LabelPosition="Top" Dock="Fill" />
              </Tab>
              <Tab Label="User Acceptance">
                <Control FieldName="MCCustomFields.UATPass" Type="FieldControl" Label="&amp;Pass:" LabelPosition="Left" />
                <Control FieldName="MCCustomFields.UATReasonForFailure" Type="HtmlFieldControl" Label="Reason For Failure:" LabelPosition="Top" Dock="Fill" />
              </Tab>
              <Tab Label="History">
                <Control FieldName="System.History" Type="WorkItemLogControl" Label="" LabelPosition="Top" Dock="Fill" />
              </Tab>
              <Tab Label="Links">
                <Control Type="LinksControl" LabelPosition="Top" Name="GeneralLinks">
                  <LinksControlOptions>
                    <LinkColumns>
                      <LinkColumn RefName="System.Id" />
                      <LinkColumn RefName="System.WorkItemType" />
                      <LinkColumn RefName="System.Title" />
                      <LinkColumn RefName="System.AssignedTo" />
                      <LinkColumn RefName="System.State" />
                      <LinkColumn LinkAttribute="System.Links.Comment" />
                    </LinkColumns>
                    <WorkItemLinkFilters FilterType="includeAll" />
                    <ExternalLinkFilters FilterType="includeAll" />
                    <WorkItemTypeFilters FilterType="includeAll" />
                  </LinksControlOptions>
                </Control>
              </Tab>
              <Tab Label="Attachments">
                <Control Type="AttachmentsControl" Label="" LabelPosition="Top" />
              </Tab>
            </TabGroup>
          </Column>
        </Group>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</Witd:WITD>